#define _CRT_SECURE_NO_WARNINGS 1
#define N 10
#include<stdio.h>
int main()
{
	int a[N][N], i, j;
	for (i = 0; i < N; i++)
	{
		for (j = 0; j <N; j++)
		{
			a[i][j] = 1;
		}
	}
	for (i = 2; i < N; i++)
	{
		for (j = 1; j <i; j++)
		{
			a[i][j] = a[i - 1][j] + a[i - 1][j - 1];
		}
	}
	for (i = 0; i < N; i++)
	{
		for (j = 0; j <=i; j++)
		{
			printf("%d\t", a[i][j]);
		}
		printf("\n");
	}
	return 0;
}